package com.jiawa.train.member.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
        import java.util.Date;
        import com.fasterxml.jackson.annotation.JsonFormat;

public class PassengerQueryResp {

    /**
    * id
    */
        @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
    * 会员id
    */
        @JsonSerialize(using= ToStringSerializer.class)
    private Long memberId;

    /**
    * 姓名
    */
    private String name;

    /**
    * 身份证
    */
    private String idCard;

    /**
    * 旅客类型|枚举[PassengerTypeEnum]
    */
    private String type;

    /**
    * 新增时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
    * 修改时间
    */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Long getId() {
    return id;
    }

    public void setId(Long id) {
    this.id = id;
    }

    public Long getMemberId() {
    return memberId;
    }

    public void setMemberId(Long memberId) {
    this.memberId = memberId;
    }

    public String getName() {
    return name;
    }

    public void setName(String name) {
    this.name = name;
    }

    public String getIdCard() {
    return idCard;
    }

    public void setIdCard(String idCard) {
    this.idCard = idCard;
    }

    public String getType() {
    return type;
    }

    public void setType(String type) {
    this.type = type;
    }

    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }

    public Date getUpdateTime() {
    return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
    }

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", memberId=").append(memberId);
    sb.append(", name=").append(name);
    sb.append(", idCard=").append(idCard);
    sb.append(", type=").append(type);
    sb.append(", createTime=").append(createTime);
    sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
